
class Restaurant():
    def __init__(self, name, cuisine_type):
        self.restaurant_name = name
        self.restaurant_cuisine_type = cuisine_type
        self.number_served = 0

    def describe_restaurant(self):
        print(f"This is {self.restaurant_name} Restaurant, "
              f"we make some {self.restaurant_cuisine_type} cuisine food.")

    def open_restaurant(self):
        print(f"{self.restaurant_name} Restaurant is opening!")
    # 设置就餐人数
    def set_number_served(self, num):
        self.number_served = num 
    # 递增就餐人数
    def increment_number_served(self, num):
        self.number_served += num     


class IceCreamStand(Restaurant):
    def __init__(self, name, cuisine_type):
        """ 初始化父类的属性"""
        super().__init__(name, cuisine_type)
        self.favors = ["vanilla", "chocolate", "strawberry", "mango"]

    def describe_ice_cream(self):
        print("We have the following ice cream flavors:")
        for ice in self.favors:
            print(ice.title())

ice_res = IceCreamStand("Honey Ice", "ice cream")
ice_res.describe_restaurant()
ice_res.describe_ice_cream()

